///<reference path="../typings/tsd.d.ts" />
//所有界面的标题、查询、新增编辑等 所有的信息，通过node来索引所有内容

window.NODE = {
    zhtj: {
        title: "项目综合统计",
        table: "aa_project",
        view: "vw_project",
        queryUrl: "cm_zhtjQuery.action",
        tblOpt: {
            header: [[{ title: '序号', span: [] }, { title: '国家公司', span: [] }, { title: '项目公司', span: [] },
                { title: '项目名称', span: [] }, { title: '项目状态', span: [] },
                { title: '业主', span: [] }, { title: '承包商', span: [] },
                { title: '建设规模', span: [] }, { title: '计划总投资额', span: [] },
                { title: '实际总投资额', span: [] }, { title: '计划开工日期', span: [] },
                { title: '计划工期', span: [] }, { title: '实际开工日期 ', span: [] },
                { title: '实际工期 ', span: [] }]],
            headerFields: ["GJMC", "GSMC", "XMMC", "XMZT", "YZ", "CBS",
                "JSGM", "JHZTZE", "SJZTZE", "JHKGRQ", "JHGQ", "SJKGRQ", "SJGQ"],
            keydataOnRow: ["XMID", "XMMC"],
            freezeContainer: "#ttWrap",
            isRownumber: true,
            isPageable: true,
            isScrollable: true,
            isSelectable: true,
            selectMulti: false
        },
        queryBottom: 20,
        deleteHint: "你确实要删除 <%=XMMC %> 的记录吗？",
        deleteUrl: "cm_zhtjDel.action",
        //add edit参数
        formOpt: {
            ajaxurl: "cm_addEdit.action",
            cols: 2,
            fields: [
                { field: "XMID", type: "prikey" },
                { field: "ZZJGID", type: "hidden"},
                { field: "XMMC", title: "项目名称", type: "string", span: 1 },
                { field: "XMZT", title: "项目状态", type: "select", span: 1, addData: [{ "ID": "开工", "MC": "开工" }] },
                { field: "YZ", title: "业主", type: "string", span: 1 },
                { field: "CBS", title: "承包商", type: "string", span: 1 },
                { field: "JSGM", title: "建设规模", type: "string", span: 1 },
                { field: "JHZTZE", title: "计划总投资额", type: "number",placeholder:"万元", span: 1 },
                { field: "SJZTZE", title: "实际总投资额", type: "number", placeholder:"万元",span: 1 },
                { field: "JHKGRQ", title: "计划开工日期", type: "date", span: 1 },
                { field: "JHGQ", title: "计划工期", type: "number", placeholder:"天",span: 1 },
                { field: "SJKGRQ", title: "实际开工日期", type: "date", span: 1 },
                { field: "SJGQ", title: "实际工期", type: "number", placeholder:"天",span: 1 }],
            tableName: "aa_project"
        },
        querybyIDUrl: "cm_queryById.action",
        //详细查询的参数    
        jqczOpt: {
            cols: 2,
            fields: [
                { field: "XMMC", title: "项目名称", type: "string", span: 1 },
                { field: "XMZT", title: "项目状态", type: "select", span: 1, addData: [{ "ID": "开工", "MC": "开工" }] },
                { field: "YZ", title: "业主", type: "string", span: 1 },
                { field: "CBS", title: "承包商", type: "string", span: 1 },
                { field: "JSGM", title: "建设规模", type: "select", span: 1, addData: "select.json" }
            ]
        }
    },//项目综合统计结束
    ndbs:{
        
    } //年度部署结束
}
